<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@taglib prefix="s" uri="/struts-tags"%>

<h2 style="font-size: 30px; font-weight: bold;text-align:center; padding-top:20px">Order by</h2>

<div style="font-size: 20px; font-weight: bold; margin-left: 200px; color: #0F0;"><s:property value="#request.success" /></div>
<div style="font-size: 20px; font-weight: bold; margin-left: 200px; color: #F00;"><s:property value="#request.error" /></div>

<h3>User: <input type="text" disabled="disabled" value="<s:property value="#request.cart.getUserProfile().getLastName()" />"/><br/></h3>
<h3>Date: <input type="text"  disabled="disabled" value="<s:property value="#request.cart.getDate()" />"/></h3>
<div class="form" style="border: dotted 1px">
	<table id="rounded-corner" summary="2007 Major IT Companies' Profit">
		<thead>
			<tr>
				<th scope="col" class="rounded">Photo</th>
				<th scope="col" class="rounded">Product Name</th>
				<th scope="col" class="rounded">Model</th>
				<th scope="col" class="rounded">SKU</th>
				<th scope="col" class="rounded">Quantity</th>
				<th scope="col" class="rounded">Price</th>
				<th scope="col" class="rounded">Delete</th>
			</tr>
		</thead>
		<tfoot>
		</tfoot>
		<tbody style="text-align: center">
			<s:iterator status="cart" value="#request.cart.getCartDetails()">
				<tr>
					<td><s:url value="%{'/' + getImageUrl()}" var="urlTag"
							namespace="/" /> <img src="<s:property value="#urlTag"/>"
						style="width: 100px; height: 100px" /></td>
					<td><s:property value="getNameProduct()" /></td>
					<td><s:property value="getModel()" /></td>
					<td><s:property value="getSku()" /></td>
					<td><s:property value="getQuantity()" /></td>
					<td><s:property value="getPrice()" /></td>
					<td><a href="#" class="ask"><img src="<s:url value="/css/admin/images/trash.png"/>" alt="<s:property value="getId()" />" 
              title="" border="0" onclick="confirmDelete('/orderlist?action=delete&idcartdetail=' + this.alt + '&idcart=' + '${request.idcart}')" /></a></td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
</div>